
---@class RiichiMahjong.TurnData: Object
---@field public id integer @ 巡数
---@field public meld RiichiMahjong.Meld? @ 吃牌之后形成的组合
---@field public player integer @ 玩家
---@field public tile integer @ 本回合摸进来的牌
---@field public discard integer? @ 本回合扔掉的牌（或加杠的牌/杠的首张牌）
---@field public action integer @ 本回合执行的操作 1-扔牌 2-鸣牌后扔牌 3-暗杠 4-明杠 5-加杠 6-自摸
---@field public winner integer[] @ 本回合的赢家
local TurnData = class("RiichiMahjong.TurnData")

function TurnData:initialize(player, tile, discard, action, meld)
  self.player = player
  self.tile = tile
  self.discard = discard
  self.action = action
  self.meld = meld
  self.winner = {}
end

return TurnData